/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.Beans;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Bone
 */
@Entity
@Table(name = "tribut_imposto_icms")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "TributImpostoIcms.findAll", query = "SELECT t FROM TributImpostoIcms t")})
public class TributImpostoIcms implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(nullable = false)
    private Integer id;
    private Integer cfop;
    @Column(name = "CST_B", length = 2)
    private String cstB;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "ALIQUOTA_ICMS", precision = 18, scale = 6)
    private BigDecimal aliquotaIcms;
    @Column(name = "REDUCAO_BASE_CALCULO", precision = 18, scale = 6)
    private BigDecimal reducaoBaseCalculo;
    @Column(name = "PAF_P_ECF")
    private Character pafPEcf;
    @Column(name = "ALIQUOTA_ICMS_ECF", precision = 18, scale = 6)
    private BigDecimal aliquotaIcmsEcf;
    @Column(name = "TOTALIZADOR_PARCIAL", length = 10)
    private String totalizadorParcial;
    @Lob
    @Column(length = 65535)
    private String descricao;
    @Column(name = "ECF_ICMS_ST", length = 4)
    private String ecfIcmsSt;
    @Column(name = "CFOP_ECF")
    private Integer cfopEcf;
    @Column(name = "CFOP_COMPRA_UF")
    private Integer cfopCompraUf;
    @Column(name = "CST_COMPRA", length = 3)
    private String cstCompra;
    @Column(name = "APROVEITA_CREDITO_ICMS", length = 3)
    private String aproveitaCreditoIcms;

    public TributImpostoIcms() {
    }

    public TributImpostoIcms(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCfop() {
        return cfop;
    }

    public void setCfop(Integer cfop) {
        this.cfop = cfop;
    }

    public String getCstB() {
        return cstB;
    }

    public void setCstB(String cstB) {
        this.cstB = cstB;
    }

    public BigDecimal getAliquotaIcms() {
        return aliquotaIcms;
    }

    public void setAliquotaIcms(BigDecimal aliquotaIcms) {
        this.aliquotaIcms = aliquotaIcms;
    }

    public BigDecimal getReducaoBaseCalculo() {
        return reducaoBaseCalculo;
    }

    public void setReducaoBaseCalculo(BigDecimal reducaoBaseCalculo) {
        this.reducaoBaseCalculo = reducaoBaseCalculo;
    }

    public Character getPafPEcf() {
        return pafPEcf;
    }

    public void setPafPEcf(Character pafPEcf) {
        this.pafPEcf = pafPEcf;
    }

    public BigDecimal getAliquotaIcmsEcf() {
        return aliquotaIcmsEcf;
    }

    public void setAliquotaIcmsEcf(BigDecimal aliquotaIcmsEcf) {
        this.aliquotaIcmsEcf = aliquotaIcmsEcf;
    }

    public String getTotalizadorParcial() {
        return totalizadorParcial;
    }

    public void setTotalizadorParcial(String totalizadorParcial) {
        this.totalizadorParcial = totalizadorParcial;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public String getEcfIcmsSt() {
        return ecfIcmsSt;
    }

    public void setEcfIcmsSt(String ecfIcmsSt) {
        this.ecfIcmsSt = ecfIcmsSt;
    }

    public Integer getCfopEcf() {
        return cfopEcf;
    }

    public void setCfopEcf(Integer cfopEcf) {
        this.cfopEcf = cfopEcf;
    }

    public Integer getCfopCompraUf() {
        return cfopCompraUf;
    }

    public void setCfopCompraUf(Integer cfopCompraUf) {
        this.cfopCompraUf = cfopCompraUf;
    }

    public String getCstCompra() {
        return cstCompra;
    }

    public void setCstCompra(String cstCompra) {
        this.cstCompra = cstCompra;
    }

    public String getAproveitaCreditoIcms() {
        return aproveitaCreditoIcms;
    }

    public void setAproveitaCreditoIcms(String aproveitaCreditoIcms) {
        this.aproveitaCreditoIcms = aproveitaCreditoIcms;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TributImpostoIcms)) {
            return false;
        }
        TributImpostoIcms other = (TributImpostoIcms) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bs.Beans.TributImpostoIcms[ id=" + id + " ]";
    }
    
}
